package org.barman.pojo;

public enum UserRole {
	WAITER("waiter"), BARMAN("barman"), MANAGER("manager");

	private String name;

	private UserRole(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public static UserRole getRole(String name) {
		for (UserRole value : values()) {
			if (value.getName().equals(name)) {
				return value;
			}
		}

		return null;
	}
};
